Delivery of incremental sensor data over optimized channel

ABSTRACT

A computer system including program instructions to receive a message at a source gateway of the local network, the message includes message data corresponding to a plurality of message elements, assign a unique group ID based on the type of message received at the source gateway, extract a message format from the received message, the message format defines how the message data is organized with respect to the message elements, and associate the extracted message format with the unique group ID. The computer system further including program instructions to store locally, the extracted message format together with the associated unique group ID, establish a dedicated connection between the source gateway and a target gateway of the remote network based on the unique group ID, encode the message based on the extracted message format, and send the encoded message from the source gateway to the target gateway across the dedicated connection.

BACKGROUND

The present invention relates generally to the field of remote sensing,and more particularly to information processing in a wireless sensornetwork.

The Internet of Things has become very popular in recent years, andsensor networks, for example, play an important role in the Internet ofThings. This has resulted in a very large number of sensors producingoverwhelming amounts of data. That data being produced and/or acquiredby the sensors in such large quantities has the potential to very easilyexhaust network resources. When the network resources become exhausted,the efficiency of data collection and analytics is affected, thereforerisking the overall performance of Internet of Things networks.

The traffic pattern of a typical Internet of Things application is veryunique. The amount and frequency of data collected from various nodes,for example sensors, is very high; however, the size of each messagebeing sent and received between networks is relatively small. Moreimportantly, a closer look at the messages being sent and received mayreveal the data contained in those messages may reflect incrementalchanges in the data in addition to data without any changes. Forexample, a sensor acquiring temperature may report little or no changeover time.

SUMMARY

According to an embodiment of the present invention, a method isprovided. The method may include receiving a message at a source gatewayof the local network, the message includes message data corresponding toa plurality of message elements, assigning a unique group ID based onthe type of message received at the source gateway, extracting a messageformat from the received message, the message format defines how themessage data is organized with respect to the message elements, andassociating the extracted message format with the unique group ID. Themethod further including storing, locally, the extracted message formattogether with the associated unique group ID, establishing a dedicatedconnection between the source gateway and a target gateway of the remotenetwork based on the unique group ID, encoding the message based on theextracted message format, and sending the encoded message from thesource gateway to the target gateway across the dedicated connection.

According to another exemplary embodiment of the present invention, amethod is provided. The method may include receiving a first message ata source gateway of the local network, the first message comprisesmessage data corresponding to a plurality of message elements, selectinga group ID from a list of predefined group IDs stored locally at thesource gateway based on the type of message received, extracting amessage format from the received message, the message format defines howthe message data is organized with respect to the message elements, andcomparing the extracted message format to a locally stored messageformat associated with the selected group ID. The method furtherincludes updating the locally stored message format to reflectdifferences between the extracted message format and the locally storedmessage format, encoding the message based on both the extracted messageformat and the locally stored message format, wherein old messageelements are encoded without encoding new message elements, and sendingthe encoded message to a target gateway of the remote network across apreexisting dedicated connection between the source gateway and thetarget gateway.

According to another exemplary embodiment of the present invention, amethod is provided. The method may include receiving, by a targetgateway of the remote network, a first message from a source gateway ofthe local network, the first message comprises message datacorresponding to a plurality of message elements and is received with aunique group ID assigned based on a message type, wherein the firstmessage is received from the source gateway via a dedicated connection,extracting a message format from the first message, the message formatdefines how the message data is organized with respect to the messageelements, associating the extracted message format with the unique groupID, storing, locally, the extracted message format together with theassociated unique group ID, and receiving a second message at the targetgateway from the source gateway, the second message being at leastpartially encoded and having the same group ID as the first message. Themethod may further include extracting a message format from the secondmessage, comparing the extracted message format of the second message tothe locally stored message format associated with the unique group ID,updating the locally stored message format to reflect differencesbetween the extracted message format of the second message and thelocally stored message format, and decoding the second message based onthe locally stored message format.

BRIEF DESCRIPTION OF THE DRAWINGS

The following detailed description, given by way of example and notintended to limit the invention solely thereto, will best be appreciatedin conjunction with the accompanying drawings, in which:

FIG. 1 is a functional block diagram illustrating a distributed dataprocessing environment, in accordance with an embodiment of the presentinvention;

FIG. 2 is a functional block diagram illustrating the delivery of sensordata in a compact form over an optimized channel, in accordance with anembodiment of the present invention;

FIG. 3 is a functional block diagram illustrating the delivery of sensordata in a compact form over an optimized channel, in accordance with anembodiment of the present invention;

FIG. 4 is a functional block diagram illustrating decoding andrestoration of an incomplete message, in accordance with an embodimentof the present invention;

FIG. 5 is a flowchart depicting operational steps of a source gatewaywhen it receives a new message having an unknown group ID, in accordancewith an embodiment of the present invention;

FIG. 6 is a flowchart depicting operational steps of a source gatewaywhen it receives a message having a known group ID, in accordance withan embodiment of the present invention;

FIG. 7 is a flowchart depicting operational steps of a source gatewaywhen it determines the message format for the incoming message based onthe group ID, in accordance with an embodiment of the present invention;

FIGS. 8A and 8B are a flowchart depicting the operational steps of thetarget gateway when it receives a message from the source gateway havingan unknown group ID, in accordance with an embodiment of the presentinvention; and

FIG. 9 is a block diagram of an exemplary computing device, inaccordance with an exemplary embodiment.

The drawings are not necessarily to scale. The drawings are merelyschematic representations, not intended to portray specific parametersof the invention. The drawings are intended to depict only typicalembodiments of the invention. In the drawings, like numbering representslike elements.

DETAILED DESCRIPTION

Detailed embodiments of the claimed structures and methods are disclosedherein; however, it can be understood that the disclosed embodiments aremerely illustrative of the claimed structures and methods that may beembodied in various forms. This invention may, however, be embodied inmany different forms and should not be construed as limited to theexemplary embodiments set forth herein. In the description, details ofwell-known features and techniques may be omitted to avoid unnecessarilyobscuring the presented embodiments.

References in the specification to “one embodiment”, “an embodiment”,“an example embodiment”, etc., indicate that the embodiment describedmay include a particular feature, structure, or characteristic, butevery embodiment may not necessarily include the particular feature,structure, or characteristic. Moreover, such phrases are not necessarilyreferring to the same embodiment. Further, when a particular feature,structure, or characteristic is described in connection with anembodiment, it is submitted that it is within the knowledge of oneskilled in the art to affect such feature, structure, or characteristicin connection with other embodiments whether or not explicitlydescribed.

In the interest of not obscuring the presentation of embodiments of thepresent invention, in the following detailed description, someprocessing steps or operations that are known in the art may have beencombined together for presentation and for illustration purposes and insome instances may have not been described in detail. In otherinstances, some processing steps or operations that are known in the artmay not be described at all. It should be understood that the followingdescription is rather focused on the distinctive features or elements ofvarious embodiments of the present invention.

In general, remote sensing refers to the acquisition of information ofan object or phenomenon, by the use of either recording or real-timesensing device that is either wireless or not in physical or intimatecontact with the object. In practice, remote sensing provides for thestand-off collection of data through the use of a variety of devices forgathering information on a given object or area. There are two maintypes of remote sensing: passive remote sensing and active remotesensing. In passive remote sensing, passive sensors detect naturalradiation emitted or reflected by the target object or surrounding area.Active remote sensing, by comparison, utilizes active sensors that emitenergy in order to scan objects and areas whereupon the sensors thendetect and measure the reflected or backscattered radiation from thetarget.

A wireless sensor network (WSN) is a physical embodiment of a remotesensing system. A WSN primarily includes a selection of spatiallydistributed autonomous sensors cooperatively monitoring physical orenvironmental conditions, such as temperature, sound, vibration,pressure, motion or pollutants. In addition to one or more sensors, eachnode in a WSN is typically equipped with a radio transceiver or otherwireless communications device, a microcontroller, and a power source,usually a battery. Of note, a WSN normally constitutes a wireless ad-hocnetwork, meaning that each sensor supports a multi-hop routing algorithmwhere nodes function as forwarders, relaying data packets to a basestation.

To the extent that each node in a WSN can act as a transmission relayfor other nodes transmitting data to a base station or other aggregationpoint for collected data, those nodes acting as a transmission relay canaccess the content of the data routed from acquiring node to aggregationpoint. Further, different nodes outside of the path of relay for data,but within transmission proximity to nodes in the path of relay candetect the data as the data traverses the path of relay. However, atpresent no additional processing is performed on data overheard in aproximate node within a path of relay from point of origin toaggregation point. Depending upon the remote sensing application,however, data overheard by nodes outside the path of relay to theaggregation point could provide additional context for relayed data. Inthis regard, in many cases, data overheard by nodes could be useful inenhancing the meaning of relayed data.

The present invention relates generally to the field of remote sensing,and more particularly to efficient processing of information in awireless sensor network. One way to efficiently process information in awireless sensor network is to deliver sensor data in a compact form overan optimized channel. One embodiment by which to deliver sensor data ina compact form over an optimized channel is described in detail below byreferring to the accompanying drawings in FIGS. 1 to 9. Those skilled inthe art will readily appreciate that the detailed description givenherein with respect to these figures is for explanatory purposes as theinvention extends beyond these limited embodiments.

Referring now to FIG. 1, a functional block diagram illustrating asystem 100 is shown in accordance with an embodiment of the presentinvention. The system 100 may, for example, include a sensor network102, such as a wireless sensor network, connected to a remote network104. The wireless sensor network 102 may include edge nodes 106 (orsensor nodes) connected to an aggregation point 108. The remote network104 may include a gateway 110 connected to a communications network 112,such as the internet. The sensor network 102 may be designed to supporthundreds of devices reporting daily. The system 100 may also begenerally understood as any local network (102) in communication withany remote network (104) via an optimized channel 114.

For purposes of the present description the aggregation point 108 of thewireless sensor network 102 may be referred to as a source gateway 108,and the gateway 110 of the remote network 104 may be referred to as atarget gateway 110, where, in general, data is sent or communicated fromthe source to the target. In an embodiment, one or both of the sourcegateway 108 or the target gateway 110 may be embodied as a gatewaycomputer. In various embodiments, the gateway computer(s) may be, forexample, a server computer, a laptop computer, a tablet computer, anetbook computer, a personal computer (PC), a desktop computer, apersonal digital assistant (PDA), a smart phone, a mobile device, or anyprogrammable electronic device capable of interfacing two networks thatuses different protocols. As described below with reference to FIG. 9,the gateway computer(s), and as such the source gateway 108 and thetarget gateway 110, may each include internal and external components.

In general, a gateway computer provides data processing and datacommunications from one network to another network. A gateway computeris a ‘gateway’ in the sense that it forms a portal through which data iscommunicated from one network to another network. Moreover, a gatewaycomputer is a ‘gateway’ in the sense that it is provides a portalbetween two forms of data communications, for example internal LANprotocols (which are often powerline protocols such as X-10 or wirelessLAN protocols such as Bluetooth or 802.11b) and external WAN protocolssuch as for example TCP/IP or HTTP.

In an embodiment, the system 100 may include any number of gatewaycomputers; however, only one of each is shown for illustrative purposesonly. It may be appreciated that FIG. 1 provides only an illustration ofone implementation and does not imply any limitations with regard to theenvironments in which different embodiments may be implemented. Manymodifications to the depicted environments may be made based on designand implementation requirements.

Both the sensor network 102 and the remote network 104 may furtherinclude wired connections, wireless connections, fiber opticconnections, or some combination thereof. In general, both networks 102and 104 can include any combination of connections and protocols thatwill support communications between the various nodes, such as, thesensor nodes 106, the source gateway 108, and/or the target gateway 110.The networks 102 and 104 may further include various types of networks,such as, for example, a local area network (LAN), a wide area network(WAN) such as the Internet, a telecommunication network, a wirelessnetwork, a mesh network, a public switched network and/or a satellitenetwork.

In general, the source gateway 108, and the target gateway 110 mayrepresent a network node for interfacing with another network that usesa different protocol. The gateways may further include, devices, suchas, for example, protocol translators, impedance matching devices, rateconvertors, fault isolators, or signal translators. Specifically, in thepreferred embodiment, the source gateway 108 and the target gateway 110connect and translate the network protocol of the wireless sensornetwork 102 to the network protocol for the internet 112 by performingany required protocol conversions.

The source gateway 108, or base station, may be a specialized node thatself-organizes into a sensor network backbone. The source gateway 108may accumulate data readings from various devices in the sensor network102, and repeat or route that data to another network. The sourcegateway 108 may be at the root of the sensor network's 102 network tree.In an embodiment, the sensor network 102 may include multipleaggregation points for redundancy. Specifically, the source gateway 108may provide an interface to a different physical or logical network. Thesource gateway 108 may serve as a portal to different types of networks,terminating the sensor network 102 protocol and translatingcommunications to a different protocol appropriate for the new network.Alternatively, the source gateway 108 may act as a bridge, encapsulatingsensor network packets in another protocol such as TCP/IP. The sourcegateway 108 may be configured for networks such as Ethernet, WiFi,cellular, RS232, BACnet, LonWorks, or even simply binary switch outputs.In some configurations, as illustrated, the sensor nodes 106 may connectdirectly to the source gateway 108, providing a real-time connection toremote devices.

The target gateway 110 may preferably receive network traffic from, forexample, local networks and repeat or reroute that network traffic to,for example, the internet 112. Alternatively, the target gateway 110 mayaccumulate network traffic from the internet 112 and repeat or routethat network traffic back to, for example, the sensor network 102. Likethe source gateway 108, the target gateway 110 may serve as a portal todifferent types of networks, terminating the internet 112 protocol andtranslating communications to a different protocol appropriate for thenew network. It should be noted that the target gateway 110 is only anexample of one gateway of the remote network 104, which may generallyinclude a plurality of gateways suitable for a plurality of functions.Also, the target gateway 110 may be configured for networks such asEthernet, WiFi, cellular, RS232, BACnet, LonWorks, or even simply binaryswitch outputs.

In some embodiments, the sensor network 102 may further include a hostwhich may operate on a computer running Windows, Linux, or anotherenvironment suitable for the particular application. The host mayinclude host software, which may provide an interface to the sensornetwork 102, direct data into a database, or offer GUI applications thatmay present data, allow actuation (if applicable), or support networkadministration. In one embodiment, the host may operate on a handhelddevice. In such an embodiment, the handheld device may support a walk-byscenario, wherein a handheld device may communicate with the sourcegateway 108 to extract the network's data.

In the preferred embodiment, the sensor nodes 106, or alternatively edgenodes, may include small, battery-powered wireless radio transceiversthat may provide low-bandwidth wireless connectivity for attacheddevices such as sensors (for example, temperature, humidity, power orfuel consumption) and actuators (for example, fans, LEDs, switches).Within the mesh or hierarchical structure of the sensor network 102, thesensor nodes 106 may have parent nodes through which the sensor nodes106 may send or receive data. A sensor node's parent may include, forexample, a router, a data accumulator, or a gateway. The sensor nodes106 may report data periodically, such as once a day, and may sleep forextended periods of time to reduce battery consumption. For example,sensor nodes 106 typically do not serve as parents, but only aschildren.

Embodiments of the present invention are directed to delivering sensordata, generated by the sensor network 102, from the source gateway 108to the target gateway 110 in a compact form over the optimized channel114. In general, and for purposes of this description, the sensor datais sent and received between the source gateway 108 and the targetgateway 110 in the form of a message.

Messages sent from the source gateway 108 to the target gateway 110 maybe of a particular type and have a particular format. Message type mayrefer to a generally characterization of the data being communicated byparticular message. For example, the message type may indicate messagescontaining sensor data from a wireless sensor network or messagescontaining personal contact information from corporate directory. Themessage format defines, generally, how the message data is organized.Specifically, the message format may refer to the physical data formator data structure of the message. For example, characters, lines,spacing, tags, etcetera.

The message type, and the message format, may be automatically definedby the sensor network 102 or the source gateway 108. In an alternativeembodiment, the message type and message format may be pre-defined by aprogram or a user. For example, when authoring the client and serverprograms which operate on the sensor network 108, programmers, and/or,users may specify a particular message type and particular messageformat to be used for each message. In some cases, a referenceindicating the message type may be included or embedded within thecontext of the message. In all cases, the message format is unique toeach message type, and different message types will likely havedifferent message formats. In general, three scenarios may exist: (1)the message type is known to both the sender and the recipient, and (2)the message type is unknown to both the sender and the recipient;however, combinations of the above two scenarios are contemplated. Forexample, one likely combination may be instances where the message typeis only known to the sender and would be unknown to the target.

Referring now to FIG. 2, delivery of sensor data, generated by thesensor network 102, from the source gateway 108 to the target gateway110 in a compact form over an optimized channel is shown according tothe first scenario. In the present embodiment, the message type may beknown to both the source gateway 108 and the target gateway 110. In suchcases, a reference, or group ID, may be embedded in each message sentfrom the source gateway 108 and that group ID is recognized by thetarget gateway 110 upon receipt. The group ID, may be predefined orspecified by the client program in advance of being received at thesource gateway 108, or assigned by the source gateway 108 based on themessage type. In all cases, the group ID is unique to each message type,and different message types will be assigned or associated withdifferent group IDs.

In particular, the group ID may be assigned based on the type of themessage received at the source gateway 108. In general, the group ID mayindicate or identify the type of message, for example, the group ID maybe based on any message characteristic which may be used to distinguishtwo messages from one another. In the present embodiment, for example,the group ID indicates the type of sensor data, such as, for example,position, location, temperature, humidity, heart rate, gas (oxygen),chemical, (oil), or any differentiating characteristic of the sensordata. For example, all sensor data indication a location would have acommon group ID, or all sensor data including temperature data wouldhave a common group ID.

According to an embodiment of the first scenario, the source gateway 108may receive an incoming message 202 in its full version and, afterrecognizing its group ID, encode the full version of the incomingmessage 202 based on that group ID. More specifically, a particularincoming message may be encoded at, or by, the source gateway 108 basedon a locally stored format definition 204 associated with the knowngroup ID. The locally stored format definition 204 may include, aparticular message format associated with a unique group ID. Multipleformat definitions may be stored locally at the source gateway 108allowing the source gateway 108 to encode multiple different types ofmessages having different formats. In the present embodiment, thelocally stored format definition 204 is predetermined and may beconsidered a prerequisite to the source gateway 108 knowing orrecognizing the group ID.

In an embodiment, the incoming message 202 may include message datacorresponding to a plurality of message elements or data fields, suchas, for example, Name, Address, and Gender. The incoming message 202 maycontain predefined tags for each respective message element. In general,each message element may include a single data value. For purposes ofthe present example only, the message elements are assumed to be emptyand the exemplary message below is shown with predefined tags withoutany message data. Further, the exemplary incoming message below is notlimited to the message elements of the present example. Exemplary tagsare shown in Table 1.

TABLE 1 Incoming message <People/>   <Name/>   <Address/>   <Gender/></People>

In an embodiment, the incoming message 202, and as such the data fieldsof Table 1, may be encoded by assigning a unique code or number to eachentry or message element tag. In doing so, the message element tagsassociated with each message element may be replaced with the uniquecodes, for example, different numeric values. For example, the first tag“People” may be replaced with the number 1, and the tags “Name,”“Address,” and “Gender,” may be replaced with the numbers 1.1, 1.2, and1.3, respectively. The unique codes assigned during encoding mayalternatively each be referred to as a unique mapping ID which may beused to map the associated data with the appropriate tag duringdecoding. After the incoming message 202 is encoded by the sourcegateway 108 it may become an encoded message 206.

In the present example, the data fields “Name,” “Address,” and “Gender,”are interpreted to be sub-categories of a broader data field category“People,” and as such, are assigned hierarchical list of values (1.1,1.2, and 1.3) associate with the broader category. The incoming message202 may include tags for multiple categories of data, each having tagsassociated with one or more sub-categories. Encoding will convert boththe category tags and the sub category tags into numeric values asillustrated below. The encoded message 206 is illustrated in Table 2.

TABLE 2 Encoded Incoming Message 1   1.1   1.2   1.3 1

After the incoming message has been encoded, the original tags it wasreceived with are removed, and the encoded message 206 will only containthe new unique codes. It should be noted that if a particular tag in theincoming message has no value, then the corresponding unique code may beomitted from the encoded message 206 as is described below with respectto an example.

In some embodiments, the original tags would remain in a referencemessage which may be generated for each unique group ID, and as such,for each unique message format. The reference message may be saved byone or both of the source gateway 108 and the target gateway 110.

The encoded message 206 is then sent or transmitted to the targetgateway 110 across an optimized channel or otherwise referred to as adedicated connection. The dedicated connection is specific to andestablished only for the delivery of a messages of that specific formathaving that particular group ID. Stated differently, messages withdifferent message types, and as such different group IDs, would betransmitted or across different dedicated connections establishedbetween the source gateway 108 and the target gateway 110. Eachdedicated connection may alternatively be referred to as a persistentwebsocket connection. Preferably, the dedicated connection isestablished when the source gateway 108 identifies the message type of aparticular incoming message. Because of the dedicated connection, thetarget gateway 110 knows that all messages received via that particulardedicated connection are of a particular message type and therefore havea particular message format. Each source gateway and target gateway pairmay preferably include multiple dedicated connections, each establishedfor a communicating a single message type. It should be noted that whileonly a dedicated connection is shown in FIG. 2, a typical HTTP/MQTTconnection may also exist between the source gateway 108 and the targetgateway 110.

The dedicated connection is used to transmit the encoded sensor data ofparticular message group ID. For example, heart rate data, oncerecognized as a pattern, will be sent over a dedicated connection, andtemperature data might be transmitted over another dedicated connection.

The dedicated connection could be established by either source gateway108 or target gateway 110. Once a particular group ID is recognized(predefined or automatically recognized), the source gateway 108 willestablish the dedicate connection with target gateway 110. In anembodiment, the first message exchanged across the dedicated connectionmay be a general description of which message group ID/message type willbe sent over that dedicated connection. This allows both the sourcegateway and the target gateway to store a mapping of the dedicatedconnection and the types of message to be sent and received across thatdedicated connection. With this mapping, the target gateway knowswhatever message received from a particular dedicated connection belongsto particular message type (e.g. message coming from port 12345 belongsto message group ID 123).

The dedicated connection is optimized because not only are the messagesencoded, the content itself might be further compressed and batchencrypted for better performance, as is described in more detail belowwith reference to FIG. 4. Because of the dedicated connection and theassociated mapping, the target gateway will have all the information torestore an encoded message or batch encrypted message to its fullversion.

The target gateway 110 then decodes the encoded message 206 receivedacross the dedicated connection from the source gateway 108. The targetgateway 110 decodes the encoded message 206, and restores it back to itsfull version 210, based on a locally stored format definition 208associated with that particular group ID. It should be noted that eachmessage type will have a different message format which is associatedwith a different group ID. In other words, messages of a similar typewill generally have a similar format and be associated with the samegroup ID.

The encoded message 206 is decoded by re-applying the original tags tothe data fields based on the unique codes assigned during the encodingprocess. In order to decode, the target gateway 110 first recognizes thegroup ID of the encoded message and then looks up the locally storedformat definition 208 associated with and corresponding to thatparticular group ID. In such cases, the group IDs and associated messageformats are predefined and stored locally in, for example, a list atboth the source gateway 108 and the target gateway 110. It is theassociated message format saved locally which dictates the template fromwhich the incoming message may be decoded.

Specifically, decoding includes replacing the unique codes with theoriginal tags. For example, the first unique code of 1 will be replacedwith the original tags “People,” and the codes 1.1, 1.2, and 1.3 may bereplaced with the original tags “Name,” “Address,” and “Gender,”respectively.

Referring now to FIG. 3, delivery of sensor data, generated by thesensor network 102, from the source gateway 108 to the target gateway110 in a compact form over an optimized channel is shown according tothe second scenario. In the present embodiment, the message type may beunknown to both the source gateway 108 and the target gateway 110. Asdescribed above, the message type may typically be predefined, forexample, by the sensor network 102, and as such the group ID may bepredefined and embedded within the incoming message. Alternatively, thegroup ID is assigned by the source gateway 108 based on the messagetype. As described above, the group ID is unique to each message type,and different message types will be assigned or associated withdifferent unique group IDs.

In an embodiment, the program logic will define the message type, and assuch the message format, while a programmer specifies the group ID usingan application programming interface. In another embodiment, the sourcegateway 108 automatically learns the message type and message format,groups incoming messages based on their type, and assigns a group IDaccordingly.

When the source gateway 108 receives a first incoming message 302, inits full version, with a new or unknown message type and/or group ID, itwill not encode the message and instead send the full version of thefirst message 302 to the target gateway 110. In such cases, the fullversion of the first message 302 is sent from the source gateway 108 tothe target gateway 110 over a typical HTTP/MQTT connection. Beforesending the first message 302, the source gateway 108 will save locallythe message type, message format, and group ID as a format definition304. As previously mentioned, if the first message 302 is receivedwithout a group ID, the source gateway 108 will save locally the messagetype and message format, and assign a unique group ID to the savedmessage type and format.

In the present example, the group ID is also unknown to the targetgateway 110, the first message 302 is not encoded by the source gateway108 because the target gateway 108 would be unable to decode themessage. In doing so, the source gateway 108 may append a tag to thefirst message 302. The appended tag will indicate to the target gateway110 a status of the first message 302, for example, that the message is“new” or “unknown” and is not encoded. Alternatively, receipt of thefirst message 302 with an unknown group ID would also indicate to thetarget gateway 110 the “new” status of the message.

When the target gateway 110 receives the first message 302 from thesource gateway 110 with a new or unknown group ID, it will extract themessage type, and more importantly the message format, from the fullversion of the first message 302. The target gateway 110 will save theextracted message format locally as a format definition 306. In doingso, the target gateway 110 also associates the group ID of the firstmessage 302 together with the saved message format. Now, the targetgateway 110 is capable of receiving encoded messages with thatparticular group ID.

When the source gateway 108 receives another incoming message, a secondmessage 308 with the same group ID as the first message 302, it willexamine the message structure to check if there are new elements notshown in previous messages having the same group ID. For purposes of thepresent example, the second message 308 is of the same message type asthe first message 302 such that both the first message 302 and thesecond message 308 have identical message formats and identical messageelements. As stated previously, each message element may include asingle data value.

If no new elements are found, the source gateway 108 will encode theentire second message 308 and send an encoded second message 310 to thetarget gateway 110, as described above, based on the locally storedformat definition.

Alternatively, messages with known group IDs received by the sourcegateway 108 may not be encoded in their entirety. For example, if thesource gateway 108 does detect new elements, it will partially encodethe second message 308 and send the partially encoded message (310) tothe target gateway 110, as described above. In such cases, the sourcegateway 108 may encode only old elements and send any new elementswithout being encoded.

When the target gateway 110 receives the encoded second message 310 withthe known group ID from the source gateway 110, it will decode theentire message based on that group ID and based on the locally storedformat definition, as described above.

Moreover, when the target gateway 110 receives a partially encodedsecond message 310 from the source gateway 108 with the same group ID asthe first message, it first examines the message for new elements or newdata fields. The encoded message 310 will only contain new elements ifthe message was delivered to the source gateway 108 with the newelements. It should be noted that the target gateway 110 may, as amatter of course, always scan incoming messages for new elementsregardless of whether the message is fully encoded or partially encoded.

The incoming message may, in some instances, be received by the targetgateway 110 with a tag, as described previously, indicating whether ornot the entire message is encoded. When a new element is identified by atag or detected by the target gateway 110 during a scan, the targetgateway 110 updates the locally stored format definition associated withthat particular group ID to include the new element. Therefore, thatparticular element can be encoded in future messages sent between thesource gateway 108 and the target gateway 110.

EXAMPLE

Below is an example of multiple successive messages received by thesource gateway 108 and sent to the target gateway 110. All messages ofthe present example have the same group ID. Like above, incomingmessages may include elements or data fields, such as, for example,Name, Address, and Gender. The incoming messages may contain predefinedtags for each respective data field. For purposes of the present exampleonly, the data fields each contain message data associated with eachdata field, respectively. Further, the exemplary incoming messages beloware not limited to the data fields of the present example.

An exemplary version of a first message received by the source gateway108 and prior to encoding is illustrated in Table 3 below. In thepresent example, the first line may always include the group ID.

TABLE 3 First Message prior to Encoding <group ID=“111”> <People>  <Name/=“Jennifer”>   <Address/=“459 Main Street”>   <Gender/=“Female”></People>

Upon receipt of the first message, the source gateway 108 recognized thegroup ID and, assuming no new elements exist, will encode the entirefirst message and send it to the target gateway 110. An exemplaryversion of the first message after being encoded by the source gateway108 is illustrated in Table 4 below.

TABLE 4 First Message after encoding 111 1   1.1= Jennifer   1.2=459Main Street   1.3= Female 1

The first message is then received by the target gateway 110 and decodedaccording to the locally stored message format associate with the knowngroup ID, as described previously.

Subsequently, the source gateway 108 may receive a second message, thistime containing a new element. When the source gateway 108 receives thesecond message and recognizes the group ID, it scans the message for newelements. In the present example, the source gateway 108 will identify“telephone” as a new element. The new element tag is a sub-category ofthe broader category “People.” An exemplary version of a second messagereceived by the source gateway 108 prior to encoding is illustrated inTable 5 below.

TABLE 5 Second message prior to Encoding <group ID=”111”> <People>  <Name/=“Jennifer”>   <Address/=“459 Main Street”>   <Gender/=“Female”>  <Telephone/“555-555-5555”> </People>

Because a new element exists, the source gateway 108 will only partiallyencode the second message. Specifically, only the old elements” Name,”“Address,” and “Gender” will be encoded, and the new element “telephone”will be sent in its full version tag and all. An exemplary version ofthe second message after being partially encoded by the source gateway108 is illustrated in Table 6 below.

TABLE 6 Second message after partial encoding 111 1   1.1= Jennifer  1.2=459 Main Street   1.3= Female   <Tel/“555-555-5555”> <1.4> 1

When the target gateway 118 receives the partially encoded secondmessage of Table 6 and recognizes the group ID, it too will scan themessage for new elements. One way the target gateway 110 may identifynew elements is by decoding all encoded elements according to thelocally stored message format, and if any remain they must, by processof elimination, be new. Alternatively, the target gateway 110 maycompare the partially encoded second message to the locally storedmessage format of the same group ID to determine the existence of newelements.

It should be noted that the partially encoded message will also includea unique mapping ID (1.4) associated with the new element to be used forencoding and decoding the new element in future messages.

In the present example, the target gateway 118 will discover “telephone”is a new element based on its un-encoded format. Alternatively, thesecond message may be received with a tag indicating to the targetgateway 108 that it was only partially encoded. Upon discovery ornotification of the new element, the target gateway 110 will update thelocally stored message format to reflect the differences identified bycomparing the extracted message format to the locally stored messageformat.

EXAMPLE

Below is another example of multiple successive messages received by thesource gateway 108 and sent to the target gateway 110. In the presentexample, only “new data” is communicated from the source gateway 108 tothe target gateway 110. Stated differently, only those message elementshaving an updated value will be encoded and sent from the source gateway108 to the target gateway 110 over the dedicated connection. Suchmessages may be referred to as an incomplete message because not allmessage elements/data are encoded and communicated over the dedicatedconnection.

In the present example, the data being sent over the dedicatedconnection is the heartrate of an individual. For example, a heartratesensor continuously sends heartrate data to the source gateway 108 every5 seconds. As such, the source gateway 108 would then encode and sendonly changes in the heartrate to eliminate unnecessary communicationthereby eliminating the delivery of redundant information. Doing soimproves efficiency of the communication of sensor data between thesource and the target.

An exemplary version of a first heartrate message received by the sourcegateway 108 prior to encoding is illustrated in Table 7 below. Like inprevious examples, the first line includes the group ID. Also, forpurposes of this example the “Time” value represents relative timeelapsed between heartbeat measurements; however, an absolute time valuemay also be used. Unlike previous examples, the below message may onlyinclude one category of data thus obviating the need for tags todistinguish between categories and sub-categories.

TABLE 7 First Heartrate Message prior to Encoding <group ID=”9999”>  <username=“Jeffrey”>   <heartrate=“80”>   <time=“0”>

Upon receipt of the first heartrate message, the source gateway 108 willrecognize the group ID (9999) and will encode the entire first heartratemessage and send it to the target gateway 110. An exemplary version ofthe first heartrate message after being encoded by the source gateway108 is illustrated in Table 8 below.

TABLE 8 First Message after encoding 9999 2.1=Jeffrey 2.2=80 2.3=0

Alternatively, the first heartrate message may be written as[9999:2.1=Jeffrey; 2.2=80; 2.3=0]. The first heartrate message is thenreceived by the target gateway 110 and decoded according to the locallystored message format associated with the known group ID (9999), asdescribed previously.

Subsequent heartrate messages are received by the source gateway 108every 5 seconds. For example, if the next 10 heartrate values receivedover the next 50 minutes are 81, 79, 77, 76, 75, 60, 60, 60, 60, 68,then the corresponding messages sent to the target gateway 110 are asillustrated in table 9 below.

TABLE 9 Subsequent heartrate messages 1. [9999: 2.2 = 81; 2.3 = 5] 2.[9999: 2.2 = 79; 2.3 = 10] 3. [9999: 2.2 = 77; 2.3 = 15] 4. [9999: 2.2 =76; 2.3 = 20] 5. [9999: 2.2 = 75; 2.3 = 25] 6. [9999: 2.2 = 60; 2.3 =30] 7. [9999: 2.3 = 35] 8. [9999: 2.3 = 40] 9. [9999: 2.3 = 45] 10.[9999: 2.2 = 68; 2.3 = 50]

Most notably, each of the subsequent heartrate messages encoded and sentby the source gateway 108 only include data that is new or changed. Morespecifically, the username is never communicated in any of the 10subsequent messages because the heartrate of a single individual wasbeing measured. Also, messages 7-9 only include data indicating therelative time because, in those messages, the heartrate did not changeand the relative timestamp is the only element that changed. Accurateand efficient message delivery between the source gateways 108 and thetarget gateway 110 are made possible, in part, due to theencoding/decoding process and the dedicated connection, in addition tothe selective delivery of only new/unchanged message elements.

In order to accomplish efficient message delivery as described above,the source gateway 108 may keep a cache of the latest data values ofprevious sent messages, at least the data values of the very lastmessage received. The source gateway 108 may use the cache to determinewhat, if any, data elements change in successive messages. In somecases, the latest value cache would be included in the locally storedformat definition.

Furthermore, the target gateway 110 may also keep a cache of the latestdata values of previously received messages. This will allow the targetgateway 110 to decode and restore the complete message after it receivesa partially encoded message having incremental updates. Specifically,the target gateway 110 will restore an incoming message to its fullversion from the data values locally stored in the cache.

Referring now to FIG. 4, an example of the decoding and restoration ofan incomplete heartrate message is shown. For example, a demonstrationof encoding and decoding of the third heartrate message 402 of theprevious example is provided. In the present example, only the heartrateand the time are encoded and communicated from the source gateway 108 tothe target gateway 110 via the dedicated connection. Only the heartrateand the time are encoded and communicated because they are the only datavalues that changed from the second heartrate message to the thirdheartrate message. In order for the encoding/decoding techniques to beapplied the group ID will always be communicated. It should be notedthat for purposes of the present example only, the same referencenumeral is used to identify the third heartrate message at all points intime.

Specifically, the third heartrate message 402 is received by the sourcegateway 108 and is compared to a locally stored format definition 404.First, the source gateway 108 must recognize the group ID and comparethe incoming message to the format definition 404 associated with thatgroup ID, 9999 in the present example. Next, the source gateway 108compares the data values of the third heartrate message 402 to the datavalues locally stored in a cache of the previous message with the samegroup ID. Based on that comparison the source gateway 108 determines the“username” value is unchanged, the “heartrate” value changed from 79 to77, and that the time value changed from 10 to 15. Therefore, theencoded message sent by the source gateway 108 includes only the groupID, the new heartrate value and the new time value, as illustrated.

Upon receipt of the incomplete encoded message the target gateway 110will decode and restore the full version of the message using a locallystored format definition 406 including a locally stored message formatand the locally stored latest value cache. In one example, theincomplete encoded message of [9999:2.2=77; 2.3=15] may first berestored to a complete encoded message of [9999:2.1=jeffrey; 2.2=77;2.3=15], by adding the unchanged values from the latest value cache.Then, the complete encoded message may be decoded based on the locallystored message format.

In sum, embodiments of the present invention provide for optimizedstream delivery of sensor data by sending data between a source and atarget in a compact form. Once the message format is identified, eitherexplicitly specified or automatically identified by the gateways, thesource gateway can then send messages in a compact form. Additionally,efficiency of the sensor data delivery between the source and the targetmay be improved by sending only incremental changes.

Moreover, embodiments of the present invention provide for optimizedstream delivery of sensor data by establishing an optimized dedicatedconnection between the source gateway and the target gateway to delivermessage data of a particular message type associated with a unique groupID.

In an embodiment according to a combination of the above scenarios, themessage type may be known only to the source gateway 108, and thus wouldbe new or unknown to the target gateway 110. As such the group ID willalso be known to the source gateway 108. Format definitions andassociated group IDs locally stored at the source gateway 108 may bepredefined, for example, either by the sensor network, program logic, aprogrammer, or some combination thereof. In such cases, the sourcegateway 108 will encode an incoming message according to a locallystored format definition associated with the know group ID.

In the present scenario, any one particular message must first becommunicated to the target gateway 110 in its full version to allow thetarget gateway to extract and save a format definition locally, asdescribed in detail above. Once the format definition and associatedgroup ID is stored locally at the target gateway 118, subsequentmessages of the same group ID may be encoded and sent as incompletemessages, as described in detail above.

Referring now to FIG. 5, a flowchart depicting the operational steps ofthe source gateway 108 when it receives a new message having an unknowngroup ID, is shown according to an embodiment of the present invention.For purposes of the present description an incoming message is said tohave an unknown group ID when the source gateway 108 has not yetreceived a message of its particular type.

The source gateway 108 receives an incoming message from the sensornetwork 102 on a periodic basis (at 502). Each message sent by thesource gateway 108 and received by the target gateway 110 is of aparticular type and is associated with a unique group ID. The sourcegateway 108 assigns a unique group ID to the incoming message (at 504).In some embodiments, a group ID may be predetermined or specified by aprogrammer in advance of the message being received by the sourcegateway 108. Next, the source gateway 108 extracts a message format ofthe incoming message (at 506). Stated differently, the source gateway108 reads or scans the incoming message and detects and saves locallythe format of the incoming message. Specifically, the message format mayinclude organization of data within the message, data labels, datavalues, character count, number of lines, spacing and/or otherformatting characteristics which may be used by the source gateway 108to distinguish one format from another.

Once the source gateway 108 extracts the message format, it associatesthe extracted message format with the unique group ID (at 508). Thesource gateway 108 then stored locally the extracted message formattogether with the associated unique group ID (at 510). The extractedmessage format and associated unique group ID may together be referredto as a format definition. Next, the source gateway 108 establishes adedicated connection between it and the target gateway 110 (at 512). Thededicated connection is based on and specific to each unique group ID.Before the incoming message can be transmitted to the target gateway110, it is encoded by the source gateway 108 (at 514). The incomingmessage is encoded based on the extracted message format associated withthe group ID. Finally, the encoded message is sent from the sourcegateway 108 to the target gateway 110 across the dedicated connection(at 516).

Referring now to FIG. 6, a flowchart depicting the operational steps ofthe source gateway 108 when it receives a message having a known groupID is shown according to an embodiment of the present invention. Forpurposes of the present description an incoming message is said to havea known group ID when the source gateway 108 has already received amessage of its particular type or, alternatively, the message type andthus group ID is predefined and stored locally at the source gateway108.

Like above, the source gateway 108 receives an incoming message from thesensor network 102 on a periodic basis (at 602). In some embodiments,the source gateway 108 will detect and recognize the type of thereceived message and match it to a known group ID. In the presentexample, the source gateway 108 will recognize the message type of theincoming message and select a locally stored group ID previouslyassociated with messages of a similar type (at 604). Specifically, thesource gateway 108 will select a group ID based on the type of messagereceived. The group ID is selected from a list of predefined group IDsstored locally stored at the source gateway 108.

Next, the source gateway 108 determines or identifies, from a locallystored format definition, the message format based on the selected groupID (at 606). After, identifying the message format, the source gateway108 encodes the incoming message based on the predefined message formatassociated with the particular group ID (at 608). It should be notedthat updating the locally stored message format may include addingmessage elements, subtracting message elements, or both. Lastly, theencoded message is sent from the source gateway 108 to the targetgateway 110 across the dedicated connection (at 610).

Referring now to FIG. 7, a flowchart depicting the operational steps ofthe source gateway 108 when it determines the message format for theincoming message based on the group ID is shown according to anembodiment of the present invention. First, the source gateway 108extracts the message format from the incoming message (at 702), and thencompares the extracted message format to a locally stored message formatassociated with the unique group ID (at 704).

If the extracted message format is different from the locally storedmessage format, then the source gateway 108 updates the locally storedmessage format to reflect the differences (at 706). If the extractedmessage format is not different from the locally stored message format,then the source gateway 108 encodes the incoming message based on boththe extracted message format and the locally stored message format (at708).

The source gateway 108 then sends the encoded message to the targetgateway 110 across a dedicated connection (at 710). If, however, adedicated connection does not yet exist for messages of that particulargroup ID, then the source gateway 108 will establish a dedicatedconnection with the target gateway 110 based on the unique group ID (at712).

Referring now to FIGS. 8A and 8B, a flowchart depicting the operationalsteps of the target gateway 110 when it receives a message from thesource gateway 108 having an unknown group ID is shown according to anembodiment of the present invention. For purposes of the presentdescription a message is said to have an unknown group ID when thetarget gateway 110 has not yet received a message of its particulartype.

The target gateway 110 receives a first message from the source gateway108 (at 802). The first message is received at the target gateway 110with a unique group ID based on the type of message, as described above.The target gateway 110 then extracts the message format from the firstmessage (at 804), and associates the extracted message format with theunique group ID (at 806). Both the message format together with theunique ID are stored locally at the target gateway 110 (at 808).

The target gateway 110 then receives a second message form the sourcegateway 108 (at 810). The second message is at least partially encodedand has the same group ID as the first message. The target gateway 110extracts the message format from the second message (at 812), and thencompares the extracted message format to a locally stored message formatassociated with the unique group ID (at 814).

If the extracted message format is different from the locally storedmessage format, then the target gateway 110 updates the locally storedmessage format to reflect the differences (at 816). It should be notedthat updating the locally stored message format may include addingmessage elements, subtracting message elements, or both. If theextracted message format is not different from the locally storedmessage format, then the target gateway 110 decodes the second messagebased on the locally stored message format (at 818).

Referring now to FIG. 9, a block diagram of components of a computingdevice, such as the client computer 102 or the server computer 104, ofthe system 100 of FIG. 1, in accordance with an embodiment of thepresent invention is shown. It should be appreciated that FIG. 9provides only an illustration of one implementation and does not implyany limitations with regard to the environments in which differentembodiments may be implemented. Many modifications to the depictedenvironment may be made.

The computing device may include one or more processors 902, one or morecomputer-readable RAMs 904, one or more computer-readable ROMs 906, oneor more computer readable storage media 908, device drivers 912,read/write drive or interface 914, network adapter or interface 916, allinterconnected over a communications fabric 918. Communications fabric918 may be implemented with any architecture designed for passing dataand/or control information between processors (such as microprocessors,communications and network processors, etc.), system memory, peripheraldevices, and any other hardware components within a system.

One or more operating systems 910, and one or more application programs911, are stored on one or more of the computer readable storage media908 for execution by one or more of the processors 902 via one or moreof the respective RAMs 904 (which typically include cache memory). Inthe illustrated embodiment, each of the computer readable storage media908 may be a magnetic disk storage device of an internal hard drive,CD-ROM, DVD, memory stick, magnetic tape, magnetic disk, optical disk, asemiconductor storage device such as RAM, ROM, EPROM, flash memory orany other computer-readable tangible storage device that can store acomputer program and digital information.

The computing device may also include a R/W drive or interface 914 toread from and write to one or more portable computer readable storagemedia 926. Application programs 911 on the computing device may bestored on one or more of the portable computer readable storage media926, read via the respective R/W drive or interface 914 and loaded intothe respective computer readable storage media 908.

The computing device may also include a network adapter or interface916, such as a TCP/IP adapter card or wireless communication adapter(such as a 4G wireless communication adapter using OFDMA technology).Application programs 911 on the computing device may be downloaded tothe computing device from an external computer or external storagedevice via a network (for example, the Internet, a local area network orother wide area network or wireless network) and network adapter orinterface 916. From the network adapter or interface 916, the programsmay be loaded onto computer readable storage media 908. The network maycomprise copper wires, optical fibers, wireless transmission, routers,firewalls, switches, gateway computers and/or edge servers.

The computing device may also include a display screen 920, a keyboardor keypad 922, and a computer mouse or touchpad 924. Device drivers 912interface to display screen 920 for imaging, to keyboard or keypad 922,to computer mouse or touchpad 924, and/or to display screen 920 forpressure sensing of alphanumeric character entry and user selections.The device drivers 912, R/W drive or interface 914 and network adapteror interface 916 may comprise hardware and software (stored on computerreadable storage media 908 and/or ROM 906).

The programs described herein are identified based upon the applicationfor which they are implemented in a specific embodiment of theinvention. However, it should be appreciated that any particular programnomenclature herein is used merely for convenience, and thus theinvention should not be limited to use solely in any specificapplication identified and/or implied by such nomenclature.

Embodiments of the invention may be provided to end users through acloud computing infrastructure. Cloud computing generally refers to theprovision of scalable computing resources as a service over a network.More formally, cloud computing may be defined as a computing capabilitythat provides an abstraction between the computing resource and itsunderlying technical architecture (e.g., servers, storage, networks),enabling convenient, on-demand network access to a shared pool ofconfigurable computing resources that can be rapidly provisioned andreleased with minimal management effort or service provider interaction.Thus, cloud computing allows a user to access virtual computingresources (e.g., storage, data, applications, and even completevirtualized computing systems) in “the cloud,” without regard for theunderlying physical systems (or locations of those systems) used toprovide the computing resources.

Typically, cloud computing resources are provided to a user on apay-per-use basis, where users are charged only for the computingresources actually used (e.g. an amount of storage space consumed by auser or a number of virtualized systems instantiated by the user). Auser can access any of the resources that reside in the cloud at anytime, and from anywhere across the Internet. In context of the presentinvention, a user may access a normalized search engine or related dataavailable in the cloud. For example, the normalized search engine couldexecute on a computing system in the cloud and execute normalizedsearches. In such a case, the normalized search engine could normalize acorpus of information and store an index of the normalizations at astorage location in the cloud. Doing so allows a user to access thisinformation from any computing system attached to a network connected tothe cloud (e.g., the Internet).

The present invention may be a system, a method, and/or a computerprogram product. The computer program product may include a computerreadable storage medium (or media) having computer readable programinstructions thereon for causing a processor to carry out aspects of thepresent invention.

The computer readable storage medium can be a tangible device that canretain and store instructions for use by an instruction executiondevice. The computer readable storage medium may be, for example, but isnot limited to, an electronic storage device, a magnetic storage device,an optical storage device, an electromagnetic storage device, asemiconductor storage device, or any suitable combination of theforegoing. A non-exhaustive list of more specific examples of thecomputer readable storage medium includes the following: a portablecomputer diskette, a hard disk, a random access memory (RAM), aread-only memory (ROM), an erasable programmable read-only memory (EPROMor Flash memory), a static random access memory (SRAM), a portablecompact disc read-only memory (CD-ROM), a digital versatile disk (DVD),a memory stick, a floppy disk, a mechanically encoded device such aspunch-cards or raised structures in a groove having instructionsrecorded thereon, and any suitable combination of the foregoing. Acomputer readable storage medium, as used herein, is not to be construedas being transitory signals per se, such as radio waves or other freelypropagating electromagnetic waves, electromagnetic waves propagatingthrough a waveguide or other transmission media (e.g., light pulsespassing through a fiber-optic cable), or electrical signals transmittedthrough a wire.

Computer readable program instructions described herein can bedownloaded to respective computing/processing devices from a computerreadable storage medium or to an external computer or external storagedevice via a network, for example, the Internet, a local area network, awide area network and/or a wireless network. The network may comprisecopper transmission cables, optical transmission fibers, wirelesstransmission, routers, firewalls, switches, gateway computers and/oredge servers. A network adapter card or network interface in eachcomputing/processing device receives computer readable programinstructions from the network and forwards the computer readable programinstructions for storage in a computer readable storage medium withinthe respective computing/processing device.

Computer readable program instructions for carrying out operations ofthe present invention may be assembler instructions,instruction-set-architecture (ISA) instructions, machine instructions,machine dependent instructions, microcode, firmware instructions,state-setting data, or either source code or object code written in anycombination of one or more programming languages, including an objectoriented programming language such as Smalltalk, C++ or the like, andconventional procedural programming languages, such as the “C”programming language or similar programming languages. The computerreadable program instructions may execute entirely on the user'scomputer, partly on the user's computer, as a stand-alone softwarepackage, partly on the user's computer and partly on a remote computeror entirely on the remote computer or server. In the latter scenario,the remote computer may be connected to the user's computer through anytype of network, including a local area network (LAN) or a wide areanetwork (WAN), or the connection may be made to an external computer(for example, through the Internet using an Internet Service Provider).In some embodiments, electronic circuitry including, for example,programmable logic circuitry, field-programmable gate arrays (FPGA), orprogrammable logic arrays (PLA) may execute the computer readableprogram instructions by utilizing state information of the computerreadable program instructions to personalize the electronic circuitry,in order to perform aspects of the present invention.

Aspects of the present invention are described herein with reference toflowchart illustrations and/or block diagrams of methods, apparatus(systems), and computer program products according to embodiments of theinvention. It will be understood that each block of the flowchartillustrations and/or block diagrams, and combinations of blocks in theflowchart illustrations and/or block diagrams, can be implemented bycomputer readable program instructions.

These computer readable program instructions may be provided to aprocessor of a general purpose computer, special purpose computer, orother programmable data processing apparatus to produce a machine, suchthat the instructions, which execute via the processor of the computeror other programmable data processing apparatus, create means forimplementing the functions/acts specified in the flowchart and/or blockdiagram block or blocks. These computer readable program instructionsmay also be stored in a computer readable storage medium that can directa computer, a programmable data processing apparatus, and/or otherdevices to function in a particular manner, such that the computerreadable storage medium having instructions stored therein comprises anarticle of manufacture including instructions which implement aspects ofthe function/act specified in the flowchart and/or block diagram blockor blocks.

The computer readable program instructions may also be loaded onto acomputer, other programmable data processing apparatus, or other deviceto cause a series of operational steps to be performed on the computer,other programmable apparatus or other device to produce a computerimplemented process, such that the instructions which execute on thecomputer, other programmable apparatus, or other device implement thefunctions/acts specified in the flowchart and/or block diagram block orblocks.

The flowchart and block diagrams in the figures illustrate thearchitecture, functionality, and operation of possible implementationsof systems, methods, and computer program products according to variousembodiments of the present invention. In this regard, each block in theflowchart or block diagrams may represent a module, segment, or portionof instructions, which comprises one or more executable instructions forimplementing the specified logical function(s). In some alternativeimplementations, the functions noted in the block may occur out of theorder noted in the figures. For example, two blocks shown in successionmay, in fact, be executed substantially concurrently, or the blocks maysometimes be executed in the reverse order, depending upon thefunctionality involved. It will also be noted that each block of theblock diagrams and/or flowchart illustration, and combinations of blocksin the block diagrams and/or flowchart illustration, can be implementedby special purpose hardware-based systems that perform the specifiedfunctions or acts or carry out combinations of special purpose hardwareand computer instructions.

The descriptions of the various embodiments of the present inventionhave been presented for purposes of illustration, but are not intendedto be exhaustive or limited to the embodiments disclosed. Manymodifications and variations will be apparent to those of ordinary skillin the art without departing from the scope and spirit of the invention.The terminology used herein was chosen to best explain the principles ofthe embodiment, the practical application or technical improvement overtechnologies found in the marketplace, or to enable others of ordinaryskill in the art to understand the embodiments disclosed herein.

What is claimed is:
 1. A computer program product for processinginformation between a local network and a remote network, the computerprogram product comprising: one or more computer-readable storagedevices and program instructions stored on at least one of the one ormore tangible storage devices, the program instructions comprising:program instructions to receive a message at a source gateway of thelocal network, the message comprises message data corresponding to aplurality of message elements; program instructions to assign a uniquegroup ID based on a type of message received at the source gateway, theunique group ID is unique to each message type and different messagetypes are assigned different unique group IDs; program instructions toextract a message format from the received message, the message formatdefines how the message data is organized with respect to the messageelements; program instructions to associate the extracted message formatwith the unique group ID, the extracted message format is unique to eachmessage type such that messages assigned the same group ID have the samemessage format; program instructions to store, locally at the sourcegateway of the local network, the extracted message format together withthe associated unique group ID; program instructions to establish adedicated connection between the source gateway and a target gateway ofthe remote network based on the unique group ID, the dedicatedconnection is specific to and established only for the delivery ofmessages having the same message format and the same unique group ID;program instructions to encode the message based on the stored messageformat, such that all messages having the same unique group ID areencoded based on the extracted message format stored locally at thesource gateway; and program instructions to send the encoded messagefrom the source gateway to the target gateway across the dedicatedconnection.
 2. The computer program product of claim 1, wherein theprogram instructions to encode the message based on the extractedmessage format comprises: program instructions to decrease the size ofthe message by replacing message element tags associated with eachmessage element with unique codes, after which the message data isassociated with the unique codes without the message element tags. 3.The computer program product of claim 1, wherein the type of message isbased on any message characteristic used to distinguish one message fromanother.
 4. The computer program product of claim 1, wherein the programinstructions to send the encoded message from the source gateway to thetarget gateway across the dedicated connection comprises: programinstructions to send only a portion of the encoded message to the targetgateway.
 5. A computer program product for processing informationbetween a local network and a remote network, the computer programproduct comprising: one or more computer-readable storage devices andprogram instructions stored on at least one of the one or more tangiblestorage devices, the program instructions comprising: programinstructions to receive a first message at a source gateway of the localnetwork, the first message comprises message data corresponding to aplurality of message elements; program instructions to select a group IDfrom a list of predefined group IDs stored locally at the source gatewaybased on the type of message received, the unique group ID is unique toeach message type and different message types are assigned differentunique group IDs; program instructions to extract a message format fromthe received message, the extracted message format defines how themessage data is organized with respect to the message elements theextracted message format is unique to each message type such thatmessages assigned the same group ID have the same message format;program instructions to compare the extracted message format to alocally stored message format associated with the selected group ID;program instructions to update the locally stored message format toreflect differences between the extracted message format and the locallystored message format; program instructions to encode the message basedon both the extracted message format and the locally stored messageformat, wherein old message elements are encoded without encoding newmessage elements; and program instructions to send the encoded messageto a target gateway of the remote network across a preexisting dedicatedconnection between the source gateway and the target gateway, thepreexisting dedicated connection is specific to and used only for thedelivery of messages having the same message format and the same uniquegroup ID.
 6. The computer program product of claim 5, wherein theprogram instructions to encode the message based on both the extractedmessage format and the locally stored message format comprises: programinstructions to decrease the size of the message by replacing messageelement tags associated with each message element with unique codes,after which the message data is associated with the unique codes withoutthe message element tags.
 7. The computer program product of claim 5,wherein the type of message is based on any message characteristic usedto distinguish one message from another.
 8. The computer program productof claim 5, wherein the program instructions to send the encoded messageto the target gateway across the preexisting dedicated connectioncomprises: program instructions to send only a portion of the encodedmessage to the target gateway.
 9. The computer program product of claim5, further comprising: program instructions to store, locally, encodedmessage data of the received first message in a latest value cache;program instructions to receive a second message at the source gateway,the second message is of the same message type as the first message suchthat both the first message and the second message have identicalmessage formats and identical message elements, each message elementcomprising a single data value; program instructions to encode thereceived second message based on the determined message formatassociated with the selected group ID; program instructions to comparethe encoded second message to the message data of the first messagesaves in the latest value cache; and program instructions to send only aportion of the encoded second message based on comparing the encodedsecond message to the message data of the first message, wherein theportion of the encoded second message only includes data values of thesecond message which are different from the data values of the firstmessage.
 10. A computer program product for processing informationbetween a local network and a remote network, the computer programproduct comprising: one or more computer-readable storage devices andprogram instructions stored on at least one of the one or more tangiblestorage devices, the program instructions comprising: programinstructions to receive, by a target gateway of the remote network, afirst message from a source gateway of the local network, the firstmessage comprises message data corresponding to a plurality of messageelements and is received with a unique group ID assigned based on amessage type, wherein the first message is received from the sourcegateway via a dedicated connection specific to and used only for thedelivery of messages having the same message format and the same uniquegroup ID; program instructions to extract a message format from thefirst message, the extracted message format defines how the message datais organized with respect to the message elements and is unique to eachmessage type such that messages assigned the same group ID have the samemessage format; program instructions to associate the extracted messageformat with the unique group ID; program instructions to store, locallyat the target gateway of the remote network, the extracted messageformat together with the associated unique group ID, the unique group IDis unique to each message type and different message types are assigneddifferent unique group IDs; program instructions to receive a secondmessage at the target gateway from the source gateway, the secondmessage being at least partially encoded and having the same group ID asthe first message; program instructions to extract a message format fromthe second message; program instructions to compare the extractedmessage format of the second message to the locally stored messageformat associated with the unique group ID; program instructions toupdate the locally stored message format to reflect differences betweenthe extracted message format of the second message and the locallystored message format; and program instructions to decode the secondmessage based on the locally stored message format.
 11. The computerprogram product of claim 10, wherein the program instructions to decodethe second message based on the locally stored message format comprises:program instructions to replace unique codes of the second message withmessage element tags from the locally stored message format, after whichthe message data of the second message is associated with the messageelement tags without the unique codes.
 12. The computer program productof claim 10, further comprising: program instructions to store locally,in a latest value cache, encoded message data for the first and secondmessages, latest value cache is specific to the unique group ID and adifferent latest value cache is used for messages having a differentgroup ID; program instructions to receive a third partially encodedmessage from the source gateway with the same group ID, the thirdmessage is an incremental message update comprising fewer messageelements than the first message; and program instructions to restore thethird partially encoded message to its full version by decoding theincremental message update, the full version is based on both theencoded message data stored in the latest value cache and the decodedincremental message updates.
 13. The computer program product of claim10, wherein the type of message is based on any message characteristicused to distinguish one message from another.
 14. The computer programproduct of claim 10, wherein the first message and the second messagecomprise sensor data from a wireless sensor network.